Object = {};


function Object:new()
        local obj = {};
        self.__index = self;
        setmetatable(obj,self);
        return obj;
end

function Object:subClass(className)
    _G[className] = {};
    local obj = _G[className];
    self.base = self;
    self.__index = self;
    setmetatable(obj,self);
end

Object:subClass("Game");
Game.SetName = "Lvm";
function Game:Active()
    --self.SetName = name;
    print("name:" ..self.SetName);
end
Game:subClass("Winner");
function Winner:Active(name)
    self.base.Active(self);
    --self.base:Active();
end

local w_1 = Winner:new();
local w_2 = Winner:new();

w_1.SetName = "w_1";
w_1:Active();

w_2.SetName = "w_2";
w_2:Active();
